package cst.start.teachresourceplatform224xmz.service;

import java.util.List;

import cst.start.teachresourceplatform224xmz.bean.ArticleBean;
import cst.start.teachresourceplatform224xmz.bean.LoginBean;
import cst.start.teachresourceplatform224xmz.bean.ProjectBean;
import cst.start.teachresourceplatform224xmz.bean.TcaseBean;
import cst.start.teachresourceplatform224xmz.bean.TwareBean;
import cst.start.teachresourceplatform224xmz.bean.VideoBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by huangyanmei15 on 2017/5/10.
 */

public interface AmicoolService {
    @GET("api.php/login")
    Call<LoginBean> login(@Query("username") String username,
                          @Query("password") String password);
    @GET("api.php/reg")
    Call<String> reg(@Query("username") String username,
                     @Query("password") String password,
                     @Query("tel") String tel);
    @GET("api.php/lists/mod/{mod}")
    Call<List<VideoBean>>getVideoList(@Path("mod") String mod,
                                      @Query("page") int page,
                                      @Header("SessionID") String SessionID);//call（）返回类型
    @GET("api.php/listspecial/mod/{mod}")
    Call<List<ArticleBean>>getSVideoList(@Path("mod") String mod,
                                        @Query("page") int page,
                                        @Header("SessionID") String SessionID);//call（）返回类型
    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>>getArticleList(@Path("mod") String mod,
                                          @Query("page") int page,
                                          @Header("SessionID") String SessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<TwareBean>>getTwareList(@Path("mod") String mod,
                                      @Query("page") int page,
                                      @Header("SessionID") String SessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<TcaseBean>>getTcaseList(@Path("mod") String mod,
                                      @Query("page") int page,
                                      @Header("SessionID") String SessionID);//call（）返回类型
    @GET("api.php/lists/mod/{mod}")
    Call<List<ProjectBean>>getProjectList(@Path("mod") String mod,
                                          @Query("page") int page,
                                          @Header("SessionID") String SessionID);//call（）返回类型

   /* reg();
    getlist();
    getDataill();*/
}
